home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 16401 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: magnus.acs.ohio-state.edu!news
  2. From: "Richard D. Snyder" <snyder.164@osu.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: Q: Prohibiting Multiple Program Instances in MFC (VC++4.0)
  5. Date: Wed, 10 Apr 1996 14:29:24 -0400
  6. Organization: The Ohio State University
  7. Message-ID: <316BFE04.130E@osu.edu>
  8. NNTP-Posting-Host: s-96-239.resnet.ohio-state.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.01 (Win95; I)
  13.  
  14. I am trying to figure out how to keep only a single instance of a 
  15. program running at the same time.
  16.  
  17. I'm using Microsoft Visual C++ 4.0 and MFC 4.0.
  18.  
  19. My application class has not been significantly modified from what MFC 
  20. AppWizard generated (I added a ParseCommandLine call, but that's about 
  21. it).  My main window is a CDialog derived object.  I frequently change 
  22. the window title to reflect the status of the program, so I can't simply 
  23. use a FindWindow(NULL, "My Program") call.
  24.  
  25. Thanks in advance for any help.
  26. -- 
  27. ==================================================
  28. = Richard Snyder     =                           =
  29. = 1323 Jones Tower   =                           =
  30. = 101 Curl Drive     = Voice: (614)688-9096      =
  31. = Columbus, OH 43210 = Email: snyder.164@osu.edu =
  32. ==================================================
  33.